<?php 
class InfoModel extends Model { 
    // 自动验证设置 
    protected $_validate     =     array( 
    	array('no','require','学/工号不能为空！',1),
        array('name','require','姓名不能为空！',1), 
        array('departid','require','院系不存在！',1),
        array('role','require','权限不能为空！',1),
        array('password','require','密码不能为空！',1),
        
        ); 
} 
?>
